package com.example.mapp.buildSql;

import com.example.entity.SpotObjectPlan;
import com.example.entity.SystemMark;
import com.example.util.StringUtil;

/**
 * Created by youkun on 2018/3/22.
 */
public class SystemMarkMappSql {
    /**
     *
     * 修改的SQL
     * findList
     * @param
     * @return
     */
    public String update(SystemMark systemMark) {
        StringBuffer sb = new StringBuffer();
        sb.append(" update system_mark set party_id = #{partyId} ");
        if (systemMark.getOrganInfoMark() != null) {
            sb.append("  ,organ_info_mark=#{organInfoMark}  ");
        }
        if(systemMark.getInsertUserMark() !=null){
            sb.append("  ,insert_user_mark=#{insertUserMark}  ");
        }
        if(systemMark.getInsertMaintenanceMark() !=null){
            sb.append("  ,insert_user_mark=#{insertUserMark}  ");
        }
        sb.append(" where id=#{id} ");
        return sb.toString();
    }
}
